/*
import java.util.Scanner;
*/
/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: HP
 * Date: 2022-04-29
 * Time: 14:10
 *//*

public class Print {
    static void print(int n){
        if(n<10){
            System.out.print(n+" ");
        }else {
            print(n/10);
            System.out.print(n%10+" ");

        }
    }

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while(sc.hasNext()){
            int n = sc.nextInt();
           print(n);
        }
    }
}
*/
